package com.linsen.core.satoken.constant;

import java.util.Arrays;
import java.util.List;

/**
 * @author zhaoyong
 * @date 2023/3/13
 */
public interface SaTokenConstant {
    /**
     * SaSession中用户数据
     */
    String SESSION_USER_KEY = "user";

    /**
     * SaSession中用户角色数据
     */
    String SESSION_ROLES_KEY = "roles";

    /**
     * SaSession中用户权限数据
     */
    String SESSION_PERMISSIONS_KEY = "permissions";

    /**
     * 忽略需要验证的路径
     */
    List<String> ENDPOINTS = Arrays.asList(
            "/",
            "/**/doc.html",
            "/**/swagger-resources",
            "/**/swagger-resources/**",
            "/**/swagger-ui.html",
            "/**/swagger-ui/**",
            "/**/favicon.ico",
            "/**/v2/api-docs",
            "/**/v3/api-docs/**",
            "/**/webjars/**",
            "/oauth/**",
            "/uaa/**"
    );
}
